<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/templates/template.xhtml">
	<ui:define name="content">
	  	<h:form>
		
			<p:wizard>
			
				<p:tab id="personal">
		
					<p:panel header="Personal Details">
					
						<h:messages errorClass="error"/>
						
						<h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
							<h:outputText value="Firstname: *" />
							<p:inputText required="true" label="Firstname"
									 />
							
							<h:outputText value="Lastname: *" />
							<p:inputText required="true" label="Lastname"
									 />
							
							<h:outputText value="Age: " />
							<p:inputText  />
							
							<h:outputText value="Skip to last: " />
							<h:selectBooleanCheckbox />
						</h:panelGrid>
					</p:panel>
				</p:tab>
					
				<p:tab id="address">
					<p:panel header="Adress Details">
					
						<h:messages errorClass="error"/>
						
						<h:panelGrid columns="2" columnClasses="label, value">
							<h:outputText value="Street: " />
							<p:inputText  />
							
							<h:outputText value="Postal Code: " />
							<p:inputText  />
							
							<h:outputText value="City: " />
							<p:inputText  />
							
							<h:outputText value="Skip to last: " />
							<h:selectBooleanCheckbox  />
						</h:panelGrid>
					</p:panel>
				</p:tab>
					
				<p:tab id="contact">
					<p:panel header="Contact Information">
						
						<h:messages errorClass="error"/>
					
						<h:panelGrid columns="2" columnClasses="label, value">
							<h:outputText value="Email: *" />
							<p:inputText required="true" label="Email"
									 />
							
							<h:outputText value="Phone: " />
							<p:inputText />
							
							<h:outputText value="Additional Info: " />
							<p:inputText />
						</h:panelGrid>
					</p:panel>
				</p:tab>
					
				<p:tab id="confirm">
					<p:panel header="Confirmation">
					
						<p:growl id="growl" sticky="true" showDetail="true"/>
					
						<h:panelGrid id="confirmation" columns="6">
							<h:outputText value="Firstname: " />
							<h:outputText styleClass="outputLabel"
										/>
							
							<h:outputText value="Lastname: " />
							<h:outputText  styleClass="outputLabel"
										/>
							
							<h:outputText value="Age: " />
							<h:outputText styleClass="outputLabel"
										/>
							
							<h:outputText value="Street: " />
							<h:outputText styleClass="outputLabel"
										 />
							
							<h:outputText value="Postal Code: " />
							<h:outputText styleClass="outputLabel"
										 />
							
							<h:outputText value="City: " />
							<h:outputText styleClass="outputLabel"
										 />
							
							<h:outputText value="Email: " />
							<h:outputText styleClass="outputLabel"
										/>
							
							<h:outputText value="Phone " />
							<h:outputText styleClass="outputLabel"
										/>
							
							<h:outputText value="Info: " />
							<h:outputText styleClass="outputLabel"
										 />
							
							<h:outputText />
							<h:outputText />
						</h:panelGrid>
						
						<p:commandButton value="Submit" update="growl" 
									/>
					
					</p:panel>
				</p:tab>
				
			</p:wizard>
			
			<p:ajaxStatus>
				<f:facet name="start">
					<h:graphicImage value="../design/ajaxloading.gif" />
				</f:facet>
				
				<f:facet name="complete">
					<h:outputText value="" />
				</f:facet>
			</p:ajaxStatus>
									
		</h:form>
					
	</ui:define>
</ui:composition>
</html>